package stringzy;

public class Substring {
    public static void main(String[] args) {

        String str = "www.tedu.cn";
        int start = 4;
        int end = 8;
        String name = str.substring(start,end);
        System.out.println(name);

//        String str = "www.tedu.cn";
//        int start = 4;
//        int end = 8;
//        String name = str.substring(start,end);
//        System.out.println(name);
    }
}
